<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
PARES
	<br />
	<br />
	<form action="ParesServlet" method="post">
		Numero1: <input type="text" name="txtNumero1" /> <br /> <br /> Numero1: <input
			type="text" name="txtNumero2" /> <br /> <br /> <input type="submit"
			value="Calcular" />
	</form>


	<%@page import="java.util.ArrayList"%>
	<%
		ArrayList<Integer> pares = (ArrayList<Integer>) request.getAttribute("PARES");
		
		if (pares != null) {
			out.println("<ul>");
			for (Integer x : pares) {
				out.println("<li>" + x + "</li>");
			}
			out.println("</ul>");
		} 	
	%>

<br/>
	<br/>
	<br/>
	<a href="index.jsp">Volver al inicio.</a>
</body>
</html>